package com.yunhe.tianhe.rentcars.dao.client;

import com.yunhe.tianhe.rentcars.entity.client.Client;
import com.yunhe.tianhe.rentcars.entity.client.Credit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/11/30 0030.
 */
public interface CreditRecordDao {

    /**
     * 分页表
     * @param offset
     * @param limit
     * @return
     */
    List<Credit> findPage(@Param("offset")Integer offset, @Param("limit")Integer limit, @Param("name") String name, @Param("mobile") String mobile, @Param("idCard") String idCard);

    /**
     * 查询总行数
     * @return
     */
    Long countLines(@Param("name") String name, @Param("mobile") String mobile, @Param("idCard") String idCard);

    /**
     * 添加信用记录
     * @param credit
     */
    void save(Credit credit);
}
